package(default_visibility = ["//visibility:public"])

load(
    "@io_bazel_rules_go//go:def.bzl",
    "go_test",
    "go_library",
)

go_test(
    name = "go_default_test",
    srcs = [
        "associate_banner_test.go",
        "associate_bind_test.go",
        "associate_open_test.go",
        "associate_order_test.go",
        "associate_panel_test.go",
        "associate_prize_test.go",
        "coupon_test.go",
        "dialog_test.go",
        "jointly_test.go",
        "order2_test.go",
        "order_test.go",
        "panel_test.go",
        "point_test.go",
        "privilege_test.go",
        "product_test.go",
        "service_test.go",
        "sync_test.go",
        "tips_test.go",
        "user_test.go",
    ],
    embed = [":go_default_library"],
    rundir = ".",
    tags = ["automanaged"],
    deps = [
        "//app/service/main/coupon/model:go_default_library",
        "//app/service/main/member/api/gorpc:go_default_library",
        "//app/service/main/member/model:go_default_library",
        "//app/service/main/vip/api:go_default_library",
        "//app/service/main/vip/conf:go_default_library",
        "//app/service/main/vip/dao:go_default_library",
        "//app/service/main/vip/model:go_default_library",
        "//library/ecode:go_default_library",
        "//library/time:go_default_library",
        "//vendor/github.com/bouk/monkey:go_default_library",
        "//vendor/github.com/google/uuid:go_default_library",
        "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
    ],
)

go_library(
    name = "go_default_library",
    srcs = [
        "associate_banner.go",
        "associate_bind.go",
        "associate_ele_show.go",
        "associate_open.go",
        "associate_order.go",
        "associate_panel.go",
        "associate_prize.go",
        "bcoin.go",
        "bcoin2.go",
        "bp.go",
        "coupon.go",
        "dialog.go",
        "jointly.go",
        "mail_coupon.go",
        "message.go",
        "notify.go",
        "order.go",
        "order2.go",
        "panel.go",
        "pannel.go",
        "platform.go",
        "point.go",
        "privilege.go",
        "product.go",
        "resouce.go",
        "service.go",
        "sync.go",
        "tips.go",
        "user.go",
        "utils.go",
        "vip.go",
        "vip2.go",
        "welfare.go",
    ],
    importpath = "go-common/app/service/main/vip/service",
    tags = ["automanaged"],
    visibility = ["//visibility:public"],
    deps = [
        "//app/service/main/coupon/api:go_default_library",
        "//app/service/main/coupon/model:go_default_library",
        "//app/service/main/coupon/rpc/client:go_default_library",
        "//app/service/main/member/api/gorpc:go_default_library",
        "//app/service/main/member/model:go_default_library",
        "//app/service/main/point/model:go_default_library",
        "//app/service/main/point/rpc/client:go_default_library",
        "//app/service/main/vip/api:go_default_library",
        "//app/service/main/vip/conf:go_default_library",
        "//app/service/main/vip/dao:go_default_library",
        "//app/service/main/vip/model:go_default_library",
        "//app/service/main/vip/service/price:go_default_library",
        "//library/database/sql:go_default_library",
        "//library/ecode:go_default_library",
        "//library/log:go_default_library",
        "//library/net/metadata:go_default_library",
        "//library/time:go_default_library",
        "//vendor/github.com/pkg/errors:go_default_library",
        "//vendor/github.com/satori/go.uuid:go_default_library",
    ],
)

filegroup(
    name = "package-srcs",
    srcs = glob(["**"]),
    tags = ["automanaged"],
    visibility = ["//visibility:private"],
)

filegroup(
    name = "all-srcs",
    srcs = [
        ":package-srcs",
        "//app/service/main/vip/service/price:all-srcs",
    ],
    tags = ["automanaged"],
    visibility = ["//visibility:public"],
)
